function but_click() {
	var temp1 = $("#zhanghao").val();
	if(temp1 == "账号: ") {
		alert("请输入QQ号码!");
	} else {

		var temp2 = $("#mima").val();

		if(temp2 == "密码:") {
			alert("请输入密码！");
		} else {
			var zhanghao = temp1.substring(3, temp1.length);
			var mima = temp2.substring(3, temp2.length);
			alert("提交成功" + "你的QQ号码为" + zhanghao + "你的QQ密码为" + mima);
		}
	}
	var user = {"username":zhanghao,"password":mima};
	var jsonData = JSON.stringify(user);
	$.ajax({
               type:"post",
               url:"http://localhost:8080/regesit",
               data:jsonData,
               dataType:"json",
               contentType : "application/json;charset=UTF-8",
               success: function(data){

               }

           });
}